/* Create a nonius structure.
 *
 * Copyright (c) 1993 Leo Spiekman
 *
 * This file is part of libMask.
 *
 * libMask is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * libMask is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with libMask.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "mask.h"

void nonius() {
  int i;

  push_cp();
  org(0.0,45e-6,0.0,NOFLIP);
  for (i=0;i<10;i++) {
    rect(((i==2)||(i==7))?30e-6:20e-6,4.1e-6+0.2e-6*i,4,4);
    move(0.0,-10e-6,0.0,NOFLIP);
  }
  rotate(M_PI);
  move(0.0,-5e-6,0.0,NOFLIP);
  for(i=0;i<11;i++) {
    rect(((i==0)||(i==5)||(i==10))?30e-6:20e-6,6e-6-0.2e-6*i,4,4);
    move(0.0,-10e-6,0.0,NOFLIP);
  }
  pop_cp();
}
